package com.study.storm.demo1.service;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author Mayjean
 * @Date2020/8/16 20:47
 */

@SpringBootApplication
@ComponentScan(value = "com.study")
public class SpringBootStormApplication {

    private static ConfigurableApplicationContext context = null;

    public static synchronized void run(String... args) {
        if (context == null) {
            context = SpringApplication.run(SpringBootStormApplication.class, args);
        }
    }
}
